productDetailsReceived
Type
message
Summary
Sent by the store when the request for specific product details is successful.
Syntax
productDetailsReceived <pProductID>, <pDetails>
Description
Use the productDetailsReceived message to get details for a specific product.
The message productDetailsReceived is sent in response to mobileStoreRequestProductDetails command, when the request is successful. The details are returned in the second parameter, pDetails, which is an array with the following keys:
For android stores (Google/Amazon/Samsung), the keys are :
- pProductID : identifier of the requested product
- price : price of the requested product
- description : description of the requested product
- title : title of the requested product
- itemType : type of the requested product
- itemImageUrl : URL where the image of the requested product is stored
- itemDownloadUrl : URL to download the requested product
- subscriptionDurationUnit : subscription duration unit of the requested product
- subscriptionDurationMultiplier : subscription duration multiplier of the requested product
For iOS store (Apple), the keys are :
- price : price of the requested product
- description : description of the requested product
- title : title of the requested product
- currency code : price currency code of the requested product
- currency symbol : currency symbol of the requested product
- unicode description : unicode description of the requested product
- unicode title : unicode title of the requested product
- unicode currency symbol : unicode currency symbol of the requested product
Parameters
Name | Type | Description |
---|---|---|
pProductID | The identifier of the product for which the request for details was made. | |
pDetails | array | An array that contains information about the specified product. The keys of this array may differ, depending on the store. |
Examples
on productDetailsReceived pProdID, pDetails
answer "Querying details for product : " && pProdID
if pDetails is empty then
answer "pDetails is empty"
else
combine pDetails using return
answer pDetails
end if
end productDetailsReceived
Related
command: mobileStoreRestorePurchases, mobileStoreDisablePurchaseUpdates, mobileStoreEnablePurchaseUpdates, mobileStoreRequestProductDetails, mobileStoreMakePurchase, mobileStoreSetProductType, mobileStoreConsumePurchase, mobileStoreConfirmPurchase, mobileStoreVerifyPurchase
function: mobileStoreProductProperty, mobileStorePurchasedProducts, mobileStorePurchaseError, mobileStoreCanMakePurchase
message: purchaseStateUpdate, productRequestError
Compatibility and Support
Introduced
LiveCode 6.7
OS
ios
android
Platforms
mobile